import json
from api.base_service import BaseService

# 封装用户服务类
class UserService(BaseService):
    def __init__(self):
        super().__init__()

    def find_by_user_name(self,name):
        resp = self.dubbo_client.invoke("UserService", "findByUserName", name)
        if resp=="null":
            return None
        else:
            return json.loads(resp)
